package com.demo.dao;

import com.demo.common.model.Airroute;
import com.demo.common.model.Code;
import com.jfinal.plugin.activerecord.Db;

import java.util.List;

public class CodeDao {

    private Code dao = new Code().dao();

    public List<Code> findByCategory(String category) {
        String sql = "select code_value,code_display from code where code_category ='" + category + "'";
        return dao.find(sql);
    }
}
